-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature/PDOAAC-6302] (issue/137) add in small notificaiton on using -gr
flag
#179
Conversation
subscriber/podaac_data_downloader.py
Outdated
@@ -280,6 +280,9 @@ def cmr_downloader(args, token, data_path): | |||
if args.verbose: | |||
logging.info(str(results['hits']) + " granules found for " + short_name) # noqa E501 | |||
|
|||
if granule is not None and results['hits'] == 0: | |||
logging.info("** 0 granules found with -gr (granuleUR) flag; tried using wildcards (*/%)? **") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a user may takes this one of two ways:
- are you attempting to use wild cards?
- have you tried using wild cards here? it might be helpful?
Recommend changing this to something clearer:
0 granules found with -gr (granuleUR) flag; You may want to try using wildcards (*/%) in the granuleUR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'help message' might be confusing to users. recommend changing that a bit.
What's going on with the tests? |
@mike-gangl sorry that was due to the previous PR (that fixed a test) hasn't been merged into develop and into this branch; this time the tests should pass (except for 3.7) 🤞 |
Throwing in a small notification when -gr flag is used and no results have returned
looks like follows